salary_dic = {
  "tom": 1300,
  "mike": 2000,
  "sandy": 3000,
  "jenny": 1700
}
# print(salary_dic)
# 1.输出员工姓名、工资
print(f"员工姓名{list(salary_dic.keys())}")
print(f"工资{list(salary_dic.values())}")
# 2.添加新员工
salary_dic.update({"wendy": 2300})
print("修改后的工资单：")
print(f"员工姓名{list(salary_dic.keys())}")
print(f"工资{list(salary_dic.values())}")
# 3.更新员工工资
salary_dic.update({"tom": 3000})
print("修改后的工资单：")
print(f"员工姓名{list(salary_dic.keys())}")
print(f"工资{list(salary_dic.values())}")
# 4.删除员工记录
wk1 = input("请输入要删除的员工姓名：")
if wk1 in salary_dic.keys():
  salary_dic.pop(wk1)
  print(f"删除{wk1}后的工资单{salary_dic}")
else:
  print("没有该员工信息！")
# 5.查找某个员工工资
wk2 = input("请输入要查询的员工姓名：")
if wk2 in salary_dic.keys():
  wk_salary = salary_dic.get(wk2)
  print(f"{wk2}的工资为{wk_salary}")
else:
  print("没有该员工信息！")
